package cc.permission.domain;

/**
 * 位置、坐标
 *
 * @author wangyan
 * @date 2021/6/11 10:47
 */
public class ResourcePoint {

    /**
     * 横坐标
     */
    private int idx;
    /**
     * 纵坐标
     */
    private int pos;

    public ResourcePoint(int idx, int pos) {
        this.idx = idx;
        this.pos = pos;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    public static ResourcePoint generate(){
        int idx = 0;
        int pos = 1;
        return new ResourcePoint(idx,pos);
    }
}
